import React, { Component } from 'react'

export default class App extends Component {
  state = {
    age: 18,
  }
  async componentDidMount() {
    await 888
    // this.setState 前面碰到了 await，后续的表现形式也是同步的了
    this.setState({
      age: 20,
    })
    console.log(this.state.age) // 20
  }
  render() {
    return (
      <div>
        <p>{this.state.age}</p>
      </div>
    )
  }
}